<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>调用外部函数</title>
    <!--引用外部JS文件 -->
    <script type="text/javascript" src="JS/Main.js"></script>
    <!-- 内部JS -->
    <script type="text/javascript">
    function DiaoY(){
        var result = Add(2,4);
        document.write(result);
    }
    </script>
</head>
<body>
    
    <input type="button" value="加法一" onclick="sum(2,3)" />

    <input type="button" value="加法二" onclick="DiaoY()" />
</body>
</html>